//1. 将Vue-router注册为vue的插件
import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter)

import routes from "../routes/routes"

//4. 定义路由器
const router = new VueRouter({
  //5. 在路由器中注册路由
  routes
})

export default router
